<style>
    th,td{
        text-align: center;
    }
</style>

<div class="container" style="width: 1200px;">
    <div class="row" style="text-align: center">
        <label style="margin-top: 50px;margin-bottom: 30px;font-size: 24px;text-align: center;">天津大学资产变动统计表</label>
        <div style="margin-left: 800px;width: 400px">
            面积：平方米&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价值：元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;归档年月：{$start_yearmonth}-{$end_yearmonth}
        </div>
        <table class="table table-bordered">
            <thead>
            <tr>
                <th rowspan="2">部门</th>
                <th colspan="2" rowspan="2">资产类别</th>
                <th rowspan="2">期初数</th>
                <th colspan="4">本期增加数</th>
                <th colspan="4">本期减少数</th>
                <th rowspan="2">期末数</th>
            </tr>
            <tr>
                <th>购置</th>
                <th>调入</th>
                <th>其他</th>
                <th>合计</th>
                <th>调出</th>
                <th>报废</th>
                <th>其他</th>
                <th>合计</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <th rowspan="14">{$title}</th>
                <th rowspan="3">土地</th>
                <td>数量</td>
                {php}
                foreach($list[0] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>面积</td>
                {php}
                foreach($list[1] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>价值</td>
                {php}
                foreach($list[2] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <th rowspan="3">房屋构筑物</th>
                <td>数量</td>
                {php}
                foreach($list[3] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>面积</td>
                {php}
                foreach($list[4] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>价值</td>
                {php}
                foreach($list[5] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <th rowspan="2">设备</th>
                <td>数量</td>
                {php}
                foreach($list[6] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>价值</td>
                {php}
                foreach($list[7] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <th rowspan="2">家具</th>
                <td>数量</td>
                {php}
                foreach($list[8] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>价值</td>

                {php}
                foreach($list[9] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <th rowspan="2">图书</th>
                <td>数量</td>
                {php}
                foreach($list[10] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>价值</td>
                {php}
                foreach($list[11] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            <tr>
                <th rowspan="2">合计</th>
                <td>数量</td>
                {php}
                foreach($list[12] as $key => $value){
                echo '<td align="left" valign="top">--</td>';
                }
                {/php}
            </tr>
            <tr>
                <td>价值</td>
                {php}
                foreach($list[13] as $key => $value){
                echo '<td align="left" valign="top">'.$value.'</td>';
                }
                {/php}
            </tr>
            </tbody>
        </table>
    </div>
</div>
